package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 菜单表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "menu")
public class Menu implements Serializable {
    @TableId(value = "menu_no", type = IdType.INPUT)
    private Integer menuNo;

    /**
     * 上级菜单ID
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 上级菜单名称
     */
    @TableField(value = "parent_name")
    private String parentName;

    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    private String menuName;

    /**
     * 菜单中文名称
     */
    @TableField(value = "menu_zh_name")
    private String menuZhName;

    /**
     * 路由路径
     */
    @TableField(value = "route_path")
    private String routePath;

    /**
     * 权限标识
     */
    @TableField(value = "perm")
    private String perm;

    /**
     * 权限url
     */
    @TableField(value = "perm_url")
    private String permUrl;

    /**
     * 菜单类型
     */
    @TableField(value = "menu_type")
    private String menuType;

    /**
     * 组件
     */
    @TableField(value = "component")
    private String component;

    /**
     * 菜单图标
     */
    @TableField(value = "menu_icon")
    private String menuIcon;

    private static final long serialVersionUID = 1L;
}